package com.guet.mapper;

import com.guet.VO.UserVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.Map;

@Mapper
public interface UserMapper {

    @Select("select username from user where id = #{id}")
    String getUserName(Long id);

    @Select("select * from user where id = #{userId}")
    UserVO getUserInfo(Long userId);

    void update(Map map);
}
